﻿using MOD_TaiYangQiu.model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MOD_TaiYangQiu.common
{
    public class AptitudeSort : IComparer<NpcAptitude>
    {
        /// <summary>
        /// 对人物资质进行排序
        /// </summary>
        /// <param name="a"></param>
        /// <param name="b"></param>
        /// <returns></returns>
        public int Compare(NpcAptitude a, NpcAptitude b)
        {

            if (a.Number < b.Number)
            {
                return 1;
            }
            else
            {
                return -1;
            }
        }
    }
}
